﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Odyssey.Linq;

namespace Odyssey.Web.Controllers
{
    public class CustompageController : FrontBaseController
    {
        public ActionResult Detail(int? id)
        {
            var entity = id > 0
                 ? GetTable<tb_custompage>().FirstOrDefault(c => c.Id == id)
                 : new tb_custompage();
            ViewData.Model = entity;

            return View();
        }
    }
}
